import { Component, OnInit,Input,Output,Host,Inject,forwardRef,EventEmitter } from '@angular/core';
import {TranslateService} from '@ngx-translate/core';

@Component({
  selector: 'app-table-style',
  templateUrl: './table-style.component.html',
  styleUrls: ['./table-style.component.css']
})
export class TableStyleComponent implements OnInit {

  helpMessage={
    filter:false
  }
  curWidget={
    config:{
      criticalValue:'',
      chart_type:'table'
    }
  }
  verify = {widgetName: true};
  constructor(public translate:TranslateService) { 
    translate.addLangs(['zh','en']);                          //添加语言支持
    translate.setDefaultLang('en');                           //设置默认语言
    let broswerLang = translate.getBrowserLang();              //获取浏览器支持的语言
    console.log(broswerLang)                                   //zh
    translate.use(broswerLang.match(/zh|en/) ? broswerLang : 'en');
  }

  @Input() chartType:any;        //图表类型
  @Output() tableArray=new EventEmitter<any>();

  ngOnInit() {
  }


}
